package com.coincalf.service.impl;

import com.coincalf.dto.ClosePositionDTO;
import com.coincalf.entity.ForexClosePositionOrder;
import com.coincalf.mapper.ForexClosePositionOrderMapper;
import com.coincalf.service.ForexClosePositionOrderService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 平仓详情 服务实现类
 * </p>
 *
 * @author qiang
 * @since 2018-05-12
 */
@Service
public class ForexClosePositionOrderServiceImpl extends ServiceImpl<ForexClosePositionOrderMapper, ForexClosePositionOrder> implements ForexClosePositionOrderService {

    /**
     * 今日平仓（最新10条数据）
     *
     * @param userId 用户ID
     * @return
     */
    @Override
    public List<ClosePositionDTO> selectTodayList(long userId) {
        return baseMapper.selectTodayList(userId);
    }
}
